package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_PointRewardPunish", catalog="Id")
public class TcwPointRewardPunish extends BaseEntity<TcwPointRewardPunish> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="int")
	private Integer effectStock;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="int")
	private Integer type;
	@YsField(nameDataBase="ItemName", nameJava="itemName", typeDataBase="varchar")
	private String itemName;
	@YsField(nameDataBase="ItemNameSub", nameJava="itemNameSub", typeDataBase="varchar")
	private String itemNameSub;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	@YsField(nameDataBase="RoleId", nameJava="roleId", typeDataBase="bigint")
	private Long roleId;
	@YsField(nameDataBase="RoleName", nameJava="roleName", typeDataBase="varchar")
	private String roleName;
	@YsField(nameDataBase="OrgCode", nameJava="orgCode", typeDataBase="varchar")
	private String orgCode;
	@YsField(nameDataBase="OrgName", nameJava="orgName", typeDataBase="varchar")
	private String orgName;
	@YsField(nameDataBase="CreateUserId", nameJava="createUserId", typeDataBase="varchar")
	private String createUserId;
	@YsField(nameDataBase="CreateUserName", nameJava="createUserName", typeDataBase="varchar")
	private String createUserName;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwPointRewardPunish setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcwPointRewardPunish setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcwPointRewardPunish setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TcwPointRewardPunish setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public TcwPointRewardPunish setType(Integer type) {
		this.type = type;
		return this;
	}
	public String getItemName() {
		return itemName;
	}
	public TcwPointRewardPunish setItemName(String itemName) {
		this.itemName = itemName;
		return this;
	}
	public String getItemNameSub() {
		return itemNameSub;
	}
	public TcwPointRewardPunish setItemNameSub(String itemNameSub) {
		this.itemNameSub = itemNameSub;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcwPointRewardPunish setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public TcwPointRewardPunish setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public TcwPointRewardPunish setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public TcwPointRewardPunish setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public String getRoleName() {
		return roleName;
	}
	public TcwPointRewardPunish setRoleName(String roleName) {
		this.roleName = roleName;
		return this;
	}
	public String getOrgCode() {
		return orgCode;
	}
	public TcwPointRewardPunish setOrgCode(String orgCode) {
		this.orgCode = orgCode;
		return this;
	}
	public String getOrgName() {
		return orgName;
	}
	public TcwPointRewardPunish setOrgName(String orgName) {
		this.orgName = orgName;
		return this;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public TcwPointRewardPunish setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
		return this;
	}
	public String getCreateUserName() {
		return createUserName;
	}
	public TcwPointRewardPunish setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwPointRewardPunish setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwPointRewardPunish setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwPointRewardPunish setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwPointRewardPunish tcwPointRewardPunish(
		String bid,
		Integer effectStock,
		BigDecimal amount,
		Integer type,
		String itemName,
		String itemNameSub,
		String remark,
		String userId,
		String userName,
		Long roleId,
		String roleName,
		String orgCode,
		String orgName,
		String createUserId,
		String createUserName,
		Integer status
			) {
		TcwPointRewardPunish entity = new TcwPointRewardPunish();
		entity.setBid(bid);
		entity.setEffectStock(effectStock);
		entity.setAmount(amount);
		entity.setType(type);
		entity.setItemName(itemName);
		entity.setItemNameSub(itemNameSub);
		entity.setRemark(remark);
		entity.setUserId(userId);
		entity.setUserName(userName);
		entity.setRoleId(roleId);
		entity.setRoleName(roleName);
		entity.setOrgCode(orgCode);
		entity.setOrgName(orgName);
		entity.setCreateUserId(createUserId);
		entity.setCreateUserName(createUserName);
		entity.setStatus(status);
		return entity;
	}
}